package cn.inface.cn.jiekou3;

public class Test {
    public void makeFly(CanFly canFly) {
        canFly.fly();
    }

    public static void main(String[] args) {
        CanFly canFly = new Bird();


        Test test = new Test();


        test.makeFly(canFly);
        canFly = new Plane();
        test.makeFly(canFly);
    }
}
